package com.yy.druid.service.impl;

import com.yy.druid.jpa.UserJpa;
import com.yy.druid.service.UserService;
import com.yy.druid.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yangyao
 * @Description: UserServiceImpl
 * @date 2018/10/8 09:47
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserJpa userJpa;

    @Override
    public List<User> getUserList() {
        return userJpa.findAll();
    }
}
